<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Place.aspx.cs" Inherits="Place" Title="Untitled Page" %>
<%@ Register Assembly="Decav.Gatsb.Web" Namespace="Decav.Gatsb.Web.Controls" TagPrefix="gatsb" %>
<%@ Register Src="~/GatsbMap.ascx" TagName="GatsbMap" TagPrefix="decavuc" %>
<%@ Register Src="~/UserTileControl.ascx" TagPrefix="decavuc" TagName="UserTile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeaderPlaceholder" Runat="Server">
    <link rel="stylesheet" type="text/css" href="Styles/TwoColumnRightStyle.css" />
    <link rel="stylesheet" type="text/css" href="Styles/ProfileStyle.css" />
    <script language="javascript" type="text/javascript">
        function Page_Loaded()
        {
            <%= areaMap.StartFunctionName %>();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageBodyPlaceholder" Runat="Server">

    <h1><%= Location.ToString() %></h1>
    <gatsb:NotLoggedInRibbonControl ID="NotLoggedInRibbonControl1" runat="server" />
    <div visible="false" runat="Server" id="presenceStatusDiv" class="StatusRibbon" style="margin-top: -1px;">
        You are currently at <%= Location.Name %>.
    </div>
    
    <div class="ColumnRight" style="margin-top:15px;">
        <div id="locationData" runat="server">
            <decavuc:GatsbMap runat="server" id="areaMap" CssClass="PlaceMap" MapControlsVisible="false" Zoom="15" />
            <h3>Location</h3>
            <div class="PlaceInfo">
                <address>
                    <%= GetLocationAddressString() %>
                </address>
                <div style="margin-top:10px;" runat="server" id="telNumberDiv">
                    <b>Phone</b> <%= Location.TelephoneNumber.ToString()%>
                </div>
            </div>
        </div>
        <div id="tempLocationData" runat="server">
            <p>
                This location was just recently created.
            </p>
            <p>
                We don't know everything about it yet because the person who created it hasn't
                submitted any more information!
            </p>
        </div>
        
        <div id="currentVisitorsDiv" runat="Server">
            <h3>People here right now</h3>
            <asp:Repeater runat="server" ID="currentVisitorsRepeater">
                <HeaderTemplate>
                    <ul class="PeopleList">
                </HeaderTemplate>
                <ItemTemplate>
                    <li><decavuc:UserTile runat="server" User="<%# Container.DataItem %>" /></li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
        </div>
        
        <div id="recentVisitorsDiv" runat="server">
            <h3>People here recently</h3>
            <asp:Repeater runat="server" ID="recentVisitorsRepeater">
                <HeaderTemplate>
                    <ul class="PeopleList">
                </HeaderTemplate>
                <ItemTemplate>
                    <li><decavuc:UserTile ID="UserTile1" runat="server" User="<%# Container.DataItem %>" /></li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
        </div>
        
    </div>
    <div class="ColumnMain">
        <h3>The Events</h3>
        <gatsb:HistoricalPostRepeater runat="server" ID="eventHistory" CssClass="HistoricalEventList" />
    </div>

</asp:Content>

